package com.mvc.util;

public class ReflectAction {
public static Action reflectaction(String classpath){
	Action action= null;
	try {
		Class clazz = Class.forName(classpath);
		action=(Action) clazz.newInstance();
	} catch (ClassNotFoundException e) {
		e.printStackTrace();
	} catch (InstantiationException e) {
		e.printStackTrace();
	} catch (IllegalAccessException e) {
		e.printStackTrace();
	}
	return action;
}
}
